App.require(function () {
    App.defineWidgetBehavior("translate", {
        render: function (ctx) {
            
        },
        initialize: function () {
            var target = this.target;
            var animation = new Animation(2000);

            animation.onUpdate(function (obj) {
                target.position = { x: 100.5 + 300 * obj.elapsed, y: 100.5 + 300 * obj.elapsed }
            }).onComplete(function () {
                target.position = { x: 400.5, y: 400.5 };
            });
            target.addAnimation(animation);
        }
    });
})